﻿#ifndef ORDERFORMDETAILS_H
#define ORDERFORMDETAILS_H

#include <QWidget>
#include "globalvars.h"

namespace Ui {
class OrderFormDetails;
}

class OrderFormDetails : public QWidget
{
    Q_OBJECT
signals:
    void signalDeleteReserveRecord(const QString&);
    void signalHotelDetails(const QString&);

public:
    explicit OrderFormDetails(QWidget *parent = nullptr);
    ~OrderFormDetails();

    void initWindowsUnit(const ReserveInfo& reserveInfo);
    void reserveDeleteResult(bool result, const QString& msg);

private slots:
    void on_pb_deleteOrder_clicked();
    void on_pb_reserveAgain_clicked();
    void on_pb_hotelName_clicked();

private:
    QString m_hotelID;
    QString m_reserveID;
    Ui::OrderFormDetails *ui;
};

#endif // ORDERFORMDETAILS_H
